import service from '@/utils/request'

// 创建软著
export const createQmPackage = (data) => {
  return service({
    url: '/qmPackage/createQmPackage',
    method: 'post',
    data
  })
}

// 删除软著
export const deleteQmPackage = (id) => {
  return service({
    url: `/qmPackage/deleteQmPackage?id=${id}`,
    method: 'delete',
  })
}

// 批量删除软著
export const deleteQmPackageByIds = (data) => {
  return service({
    url: '/qmPackage/deleteQmPackageByIds',
    method: 'delete',
    data
  })
}

// 更新软著
export const updateQmPackage = (data) => {
  return service({
    url: '/qmPackage/updateQmPackage',
    method: 'put',
    data
  })
}

// 查找软著
export const findQmPackage = (id) => {
  return service({
    url: `/qmPackage/findQmPackage?id=${id}`,
    method: 'get',
  })
}

// 获取软著列表
export const getQmPackageList = (params) => {
  return service({
    url: '/qmPackage/getQmPackageList',
    method: 'get',
    params
  })
} 